﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>Project Manager</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>    
    <!--[if IE]>
	<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    
</head>

<body>
    <div class="page">

        <div id="header">
            <div id="title">
                <h1>Project Manager</h1>
            </div>

            <div id="logindisplay">
                @{Html.RenderAction("LogOnFast", "Account");}
            </div>
        </div>

        <div id="menucontainer">
            <ul id="menu">
                <li>@Html.ActionLink("Home", "Index", "Home")</li>
                @if ( Request.IsAuthenticated && HttpContext.Current.User.IsInRole( "user" ) ) 
                {
                    <li>@Html.ActionLink("Projects", "Projects", "Home")</li>
                    <li>@Html.ActionLink("Profile", "Profile", "Account")</li>
                }
                @if (Request.IsAuthenticated && HttpContext.Current.User.IsInRole("admin"))
                {
                    <li>@Html.ActionLink("Courses", "Courses", "Manager")</li>
                    <li>@Html.ActionLink("Projects", "Projects", "Manager")</li>
                    <li>@Html.ActionLink("Accounts manager", "Index", "Account")</li>
                    <li>@Html.ActionLink("Profile", "Profile", "Account")</li>
                }
                <li>@Html.ActionLink("Info", "Info", "Home")</li>
            </ul>
        </div>

        <div id="main">
            @*that was view with courses and projects managment menu in the right side*@
            @*@if ("ProjectManager.Controllers.ManagerController" == ViewContext.Controller.ToString())
            {
                <div id="content">
                    @RenderBody()
                </div>        
               { Html.RenderAction("ManagerMenu", "Manager"); }
            }
            else
            {*@
                @RenderBody()
            @*}*@
        </div>

        <div id="footer">
			<div class="footer-content">
				Created &copy; by Jakub Jędryszek, Mateusz Korżel &amp; Marcin Owoc.
			</div>
        </div>
    </div>
</body>
</html>
